<!DOCTYPE html>
<html lang="en"xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>文件下载</title>
</head>
<style type="text/css">
    h3{
        color: red;
        text-align: center;
    }
</style>
<body>
<h3>下载列表</h3>
<br>
<table border="1">
    <tr>
        <td>文件名</td>
        <td>文件路径</td>
        <td>文件大小(MB)</td>
        <td>文件下载</td>
    </tr>
    <tr th:each="fileMap :${files}">
        <td th:text="${fileMap.get('fileName')}"></td>
        <td th:text="${fileMap.get('filePath')}"></td>
        <td th:text="${fileMap.get('fileSize')}"></td>
        <td><a th:href="@{'/download?filePath='+${fileMap.get('filePath')}+'&fileName='+${fileMap.get('fileName')}}">下载</a></td>
    </tr>
</table>
</body>
</html>
